import request from '@/utils/request'

export function addAssets(data) {
    return request({
        url: '/app/assetsRepair/add',
        method: 'POST',
        data
    })
}


export function updateAssets(data) {
    return request({
        url: '/app/assetsRepair/update',
        method: 'POST',
        data
    })
}

export function getlendUserList(data) {
    return request({
        url: '/app/user/getUserList',
        method: 'GET',
        params: data
    })
}


export function getDepartment(data) {
    return request({
        url: '/app/home/getDepartment',
        method: 'GET',
        params: data
    })
}

// 查看编辑获取详情
export function getEditDetailFn(data) {
    return request({
        url: '/app/assetsRepair/getOne',
        method: 'GET',
        params: data
    })
}

